package cn.stylefeng.guns.modular.order.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.order.entity.OrderTransportDetailed;
import cn.stylefeng.guns.modular.order.model.params.OrderTransportDetailedParam;
import cn.stylefeng.guns.modular.order.model.params.OrderTransportParam;
import cn.stylefeng.guns.modular.order.model.result.OrderTransportDetailedResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 货运订单明细表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2019-07-18
 */
public interface OrderTransportDetailedService extends IService<OrderTransportDetailed> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2019-07-18
     */
    void add(OrderTransportDetailedParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2019-07-18
     */
    void delete(OrderTransportDetailedParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2019-07-18
     */
    void update(OrderTransportDetailedParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2019-07-18
     */
    OrderTransportDetailedResult findBySpec(OrderTransportDetailedParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2019-07-18
     */
    List<OrderTransportDetailedResult> findListBySpec(OrderTransportDetailedParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2019-07-18
     */
     LayuiPageInfo findPageBySpec(OrderTransportDetailedParam param,String condition);

     /**
      * 通过订单号查询 商品，数量，体积 总和
      * @param orderTransportDetailedParam
      * @return
      */
	List<OrderTransportDetailedResult> findTotaListBySpec(OrderTransportDetailedParam orderTransportDetailedParam);

	List<OrderTransportDetailedResult> findListBySpecWeiPei(OrderTransportDetailedParam param);
	
	boolean saveBatchList(List<OrderTransportDetailedParam> list);

	void deleteBySpec(OrderTransportDetailedParam detailedParam);

}
